package com.wangshb.upms.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.*;


/**
 * @author code auto
 */
@TableName("upms_user")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UpmsUser {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
    *用户名称
    */
    @TableField(value = "user_name")
    private String userName;

    /**
    *用户账号
    */
    @TableField(value = "user_account")
    private String userAccount;

    /**
    *密码
    */
    @TableField(value = "password")
    private String password;

    /**
    *头像
    */
    @TableField(value = "avatar")
    private String avatar;

    /**
    *md5密码盐
    */
    @TableField(value = "salt")
    private String salt;

    /**
    *性别, 1-男 2-女
    */
    @TableField(value = "sex")
    private Integer sex;

    /**
    *电子邮件
    */
    @TableField(value = "email")
    private String email;

    /**
    *电话
    */
    @TableField(value = "phone")
    private String phone;

    /**
    *组织id
    */
    @TableField(value = "upms_department_id")
    private Long upmsDepartmentId;

    /**
    *备注
    */
    @TableField(value = "description")
    private String description;

    /**
    *是否有效,1表示有效，0表示无效
    */
    @TableField(value = "valid")
    private Integer valid;

    /**
    *是否删除,1表示删除，0表示未删除
    */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
    *版本号
    */
    @Version
    @TableField(value = "version")
    private Long version;

    /**
    *创建时间
    */
    @TableField(value = "create_time")
    private java.util.Date createTime;

    /**
    *修改时间
    */
    @TableField(value = "update_time")
    private java.util.Date updateTime;

    /**
    *创建人
    */
    @TableField(value = "create_user")
    private String createUser;

    /**
    *修改人
    */
    @TableField(value = "update_user")
    private String updateUser;

}
